package com.example.chcrm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.chcrm.entity.StatsDTO.VehicleStatistics;
import com.example.chcrm.entity.vehicle.TransportChildCv;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 邹
 * @Date 2025/4/24 11:18
 * @Version 1.0
 */
@Mapper
public interface TransportChildCvMapper extends BaseMapper<TransportChildCv> {
    List<TransportChildCv> selectLists(@Param("transportChild")TransportChildCv transportChildCv,
                                       @Param("type1")int type1,@Param("type2") int type2 ,@Param("type3") int type3);

    void batchChildCvList(List<TransportChildCv> transportChildCvList);

    List<TransportChildCv> batchTransportChildCvList(String id);

    void batchUpdatePlanCurrentLocation2(@Param("childCvs")List<TransportChildCv> childCvs);

    List<TransportChildCv> wtcPageList( @Param("cv") TransportChildCv transportChildCv);

    List<VehicleStatistics> selectPlanStats(Integer year);
}
